import styled from 'styled-components'

export const UpkeepWrapper = styled.div`
  overflow-y: auto;
  /* 隐藏滚动条 */
  &::-webkit-scrollbar {
    display: none;
  }
  .upkeep_item {
    width: 800px;
    height: 150px;
    display: flex;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    border-radius: 10px;
    background-color: var(--bgColorTop);

    .poster {
      width: 200px;
      height: 100%;
      flex-shrink: 0;
      margin-right: 20px;
      border-radius: 5px;
      overflow: hidden;
      img {
        width: 100%;
        height: 100%;
      }
    }

    .right {
      display: flex;
      flex-direction: column;

      .title {
        font-size: 18px;
        font-weight: 600;
        padding: 0;
        margin: 0;
        color: var(--fontColorTop);
      }

      .desc {
        font-size: 14px;
        color: var(--fontColorBase);
      }

      .bottom {
        flex: 1;
        display: flex;
        align-items: flex-end;
        justify-content: space-between;

        .tag {
          .tag_item {
            color: var(--fontColorBase);
            font-size: 14px;
            margin-right: 10px;
            padding: 5px 10px;
            border-radius: 5px;
            background-color: var(--bgColorBase);
          }
        }

        .time {
          color: var(--fontColorBase);
          font-size: 14px;
        }
      }
    }
  }
  .more {
    color: var(--fontColorBottom);
    font-size: 14px;
    text-align: center;
  }
`
export const UpkeepDetailWrapper = styled.div`
  color: var(--fontColorTop);
  .mian_title {
    font-size: 24px;
    font-weight: 600;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    .time {
      font-size: 14px;
      color: var(--fontColorBottom);
    }
  }
  .detail_desc {
    font-size: 16px;
    padding: 20px 0;
    position: relative;
    background-color: var(--bgColorBottom);

    .mian_desc {
      color: var(--fontColorBase);
      font-size: 15px;
      display: inline-block;
      margin-left: 2%;
    }
  }

  .detail_desc::before {
    content: '';
    width: 1%;
    position: absolute;
    top: 0;
    bottom: 0;
    background-color: var(--bgColorBase);
  }

  .content {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    .sub_title {
      font-size: 16px;
      margin-top: 15px;
      margin-bottom: 10px;
    }

    .sub_desc {
      margin-left: 2em;
      margin-bottom: 10px;
    }

    .code {
      position: relative;
      .sub_code {
        user-select: text;
        font-size: 15px;

        margin-bottom: 10px;
        padding: 10px;
        box-sizing: border-box;
        overflow-x: auto;
        /* background-color: var(--bgColorBottom); */

        .copy {
          font-size: 14px;
          color: var(--fontColorBase);
          position: absolute;
          right: 20px;
          top: 20px;
          cursor: pointer;
        }
      }
    }

    .image_list {
      img {
        width: 100%;
      }
    }
  }
`
